111111111<?php
if ($session->check('Message.flash'))
{
	$message = $session->read('Message.flash');
	$strMessage = ucfirst($message['params']['type']).": ".$message['message'];
	?>
	alert('<?php echo $strMessage;?>');
	<?php 
	$session->del('Message.flash');
}
?>
<?php echo $content_for_layout; ?>